package com.aio.kgo.simple.form.database.service;

import com.aio.kgo.simple.form.common.domain.save.ModelDefinitionDo;
import com.aio.kgo.simple.form.database.domain.params.QueryModelParams;
import com.kgo.flow.common.domain.page.KgoPage;
import com.kgo.flow.common.domain.page.PageResult;

import java.util.List;

/**
 * @author lizhenming
 * @desc:
 * @date 2023/12/26 22:09
 */
public interface AioModelService {
    ModelDefinitionDo createModel(ModelDefinitionDo definitionDo);
    ModelDefinitionDo updateModel(ModelDefinitionDo definitionDo);
    ModelDefinitionDo getModelByKeyAndModule(String modelKey,String module);
    ModelDefinitionDo getModelById(String modelId);
    ModelDefinitionDo enableModel(String modelId);
    ModelDefinitionDo disableModel(String modelId);
    List<ModelDefinitionDo> getModelList(QueryModelParams params);
    PageResult<ModelDefinitionDo> getModelPage(QueryModelParams params, KgoPage page);
}
